package org.hy.domain;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.hy.domain.profile.PartialProfile;
/**
 * 用户模型
 * @author xwm
 *
 */
public class User {
	private Integer id;
	private String email;
	private String password;
	private String name;
	private String photo;
	private Integer status;
	private Date intime;
	private PartialProfile partialProfile;
	
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhoto() {
		return photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Date getIntime() {
		return intime;
	}
	public void setIntime(Date intime) {
		this.intime = intime;
	}
	
	public PartialProfile getPartialProfile() {
		return partialProfile;
	}
	public void setPartialProfile(PartialProfile partialProfile) {
		this.partialProfile = partialProfile;
	}
	public String toString() {
	
		ToStringBuilder builder = new ToStringBuilder(this,ToStringStyle.SHORT_PREFIX_STYLE);	
		builder.append("id",id).append("name",name);
		return builder.toString();
	}
	
}
